import java.util.List;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import member.domain.Member;
import member.model.service.MemberService;


public class MemberTest {

	public static void main(String[] args) throws Exception {
		//ApplicationContext객체 생성
		ApplicationContext context = new ClassPathXmlApplicationContext("member/config/member.xml");
		
		//MemberService 객체 주입 받기
		
		MemberService service = (MemberService)context.getBean("MemberServiceImpl");
		List<Member> list= service.getMemberList();
		System.out.println("------------전체 회원 목록------------");
		for(Member m : list){
			System.out.println(m);
		}
	}
}
 